PATHMac OS 8 Developer Documentation > Operating System Services > Multiprocessing Services >

Adding Multitasking Capability to Applications Using Multiprocessing Services

   

Timer Option Masks

When calling MPArmTimer , you can pass values of type OptionBits to specify any optional actions.

enum {
    kMPPreserveTimerIDMask      = 1L << 0,
    kMPTimeIsDeltaMask          = 1L << 1,
    kMPTimeIsDurationMask       = 1L << 2
    };

Constant Descriptions

kMPPreserveTimerID
Specifying this mask prevents the timer from being deleted when it expires.
kMPTimeIsDeltaMask
Specifying this mask indicates that the specified time should be added to the previous expiration time to form the new expiration time. You can use this mask to compensate for timing drift caused by the finite amount of time required to arm the timer, receive the notification, and so on.
kMPTimeIsDurationMask
Specifying this mask indicates that the specified expiration time is of type Duration . You can use this mask to avoid having to call time conversion routines when specifying an expiration time.
VERSION NOTES

Introduced with Multiprocessing Services 2.0.


© 1999 Apple Computer, Inc. – (Last Updated 07 May 99)